package org.dromara.genealogy.domain.bo;

import org.dromara.genealogy.domain.GeGenera;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 世代业务对象 ge_genera
 *
 * @author qianjm
 * @date 2025-08-16
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = GeGenera.class, reverseConvertGenerate = false)
public class GeGeneraBo extends BaseEntity {

    /**
     *
     */
    private Long id;

    /**
     * 世代编码
     */
    @NotBlank(message = "世代编码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String code;

    /**
     * 世代名称
     */
    @NotBlank(message = "世代名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 世代说明
     */
    @NotBlank(message = "世代说明不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;


}
